4D Chart v12CT Get refnum | 
            ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
                    
                        
  | 
                
                    
                         
    4D Chart v12
 
CT Get refnum 
 
        
 | 
                |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CT Get refnum ( area ; scope ) -> Function result | ||||||||
| Parameter | Type | Description | ||||||
| area | Longint | 
             
         | 
        4D Chart area | |||||
| scope | Longint | 
             
         | 
        Scope of the function -2 = Default -1 = All 0 = Selected objects >0 = Object ID | |||||
| Function result | Longint | 
             
         | 
        Reference number for the objects in area | |||||
CT Get refnum returns the reference number for the object(s) in the area described by scope. A reference number is a long integer associated with an object and is not necessarily unique. Reference numbers can only be manipulated programmatically. You assign a reference number to an object. The object ID, on the other hand, is assigned by 4D Chart.
This example is the object method for a button on a form that contains Area. When the method executes, it checks to see if only one object is selected, searches in the [Parts] table for the corresponding record, and displays its description
 QUERY([Parts];[Parts]RefNum=CT Get refnum(Area;0))
 ALERT("This object is a "+[Parts]Description)
	Product:  4D Chart
	Theme:  CT Objects
	Number:  
        14565
        
        
        
	
	Created:  4D Chart 1